package com.zyx.spring5msb.aopxml.service;

import org.springframework.stereotype.Service;

/**
 * @author Yaxi.Zhang
 * @since 2021/9/28 13:50
 */
@Service
public class CalculatorImpl implements Calculator {
    @Override
    public int add(int i, int j) {
        return i + j;
    }

    @Override
    public int sub(int i, int j) {
        return i - j;
    }

    @Override
    public int mul(int i, int j) {
        return i * j;
    }

    @Override
    public int div(int i, int j) {
        return i / j;
    }
}
